home *** CD-ROM | disk | FTP | other *** search
- userdict/QuarkXPress_ErrorHandler 29 dict dup begin put
- /qxperrmsgs[
- (Error Detected from Non-Object)
- (Error Detected from Text-Box)
- (Error Detected from Line)
- (Error Detected from None-Content Box)
- (Error Detected from Picture-Box)
- (Error Detected from Text-Path)
- ]def
- /qxperrid 1 string def
- /Tstr 20 string def
- /Lstr 20 string def
- /Bstr 20 string def
- /Rstr 20 string def
- /mx0str 20 string def
- /mx1str 20 string def
- /mx2str 20 string def
- /mx3str 20 string def
- /mx4str 20 string def
- /mx5str 20 string def
- /qxpstrar[Tstr Lstr Bstr Rstr mx0str mx1str mx2str mx3str mx4str mx5str]def
- /qxpobjT 0 def
- /qxpobjL 0 def
- /qxpobjB 0 def
- /qxpobjR 0 def
- /qxperrmx matrix def
- /qxperrmrklen 20 def
- /qxpfntsize 10 def
- /qxpstrpos qxpfntsize 2 add neg def
- /qxpbndpos qxpfntsize 5 add neg def
- /qxperrfont/Courier findfont qxpfntsize scalefont def
- /qxperrset{qxperrid 0 3 -1 roll put qxperrmx currentmatrix aload pop
- 9 -1 0{qxpstrar exch get exch 1 index cvs length 19 exch put}for}def
- /qxperrget{qxpstrar{dup 19 get 0 exch getinterval cvr}forall
- qxperrmx astore pop
- /qxpobjR exch def
- /qxpobjB exch def
- /qxpobjL exch def
- /qxpobjT exch def
- }def
- /qxperrshow{
- dup stringwidth pop dup gsave newpath 0 0 moveto
- 0 rlineto 0 qxpbndpos rlineto neg 0 rlineto
- closepath 1 setgray eofill grestore gsave newpath
- 0 setgray 0 qxpstrpos moveto show grestore 0 qxpbndpos translate
- }def
- /qxperrtypes{
- exch 100 string dup 0 3 index putinterval exch
- length 1 index length 1 index sub 3 copy getinterval
- 5 -1 roll exch cvs length exch pop add 0 exch getinterval qxperrshow
- }def
- /qxperrpagemarks{
- initclip initmatrix gsave newpath clippath flattenpath pathbbox .5 setlinewidth
- 0 setgray 2 sub exch 2 sub exch 4 2 roll 2 add exch 2 add exch 4 2 roll
- newpath 3 index exch moveto qxperrmrklen 0 rlineto 1 index moveto 0 qxperrmrklen rlineto
- 2 copy moveto 0 qxperrmrklen rlineto moveto qxperrmrklen 0 rlineto stroke grestore
- }def
- /qxperrfunc{
- QuarkXPress_ErrorHandler begin qxperrpagemarks
- copypage erasepage qxperrpagemarks
- qxperrid 0 get qxperrmsgs 1 index get exch
- 0 ne{qxperrget gsave qxperrmx setmatrix 0 setgray 1 setlinewidth newpath
- qxpobjT qxpobjL qxpobjB qxpobjR 4 copy 4 2 roll exch
- moveto 6 -1 roll lineto lineto lineto closepath
- gsave .5 setgray fill grestore stroke grestore}if
- gsave newpath clippath flattenpath pathbbox 3 1 roll
- pop pop translate 20 -20 translate qxperrfont setfont
- qxperrshow(Error: )$error/errorname get qxperrtypes
- (OffendingCommand: )$error/command get qxperrtypes
- grestore end showpage}def
- qxperrid 0 0 put errordict/handleerror 2 copy get
- [/qxperrfunc load/exec load 4 -1 roll/exec load]cvx put
- end
- userdict begin
- /xppser{
- dup 0 eq{pop QuarkXPress_ErrorHandler/qxperrid get 0 0 put}
- {QuarkXPress_ErrorHandler begin
- qxperrset end}ifelse
- }bind def
- end
-